home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 1.iso
/
ARGONET
/
PD
/
PROGRAMMING
/
DESKLIBC
/
SOURCES.ZIP
/
DeskLib
/
!DLSources
/
Libraries
/
Resource
/
DLL
/
MkStubsOs
< prev
next >
Wrap
Text File
|
1995-09-04
|
4KB
|
175 lines
ObjectFiles = \
o.Init \
o.InitPath \
o.LoadSprite \
o.Pathname \
LibName = Resource
# Template makefile to make all .o files
# and the SDLS Stubs file for DeskLib
# sublibraries.
# Julian Smith 16 Mar 1995.
# The macro $(ObjectFiles) should be set at the
# start of this file, to be a space-separated
# list of object files.
# This is done by 'Makatic'.
# The macro $(LibName) should also be set at the
# start of this file, to be the name of the
# DeskLib sublibrary.
# This is done by 'Makatic'.
# Compiler and linker flags, These can be anything.
# All flags required by Straylight (eg CC -zM and
# Link -rmf) are included in the macros $(CC) and
# $(LINK).
#
CCFlags = -fahi $(CCExtra) -depend !Depend -throwback -D_DeskLib_$(LibName) -I,C:
ASMFlags = -Stamp -NoCache -CloseExec -Quit $(ASMExtra)
# Macros for commands, including the Straylight
# tool 'cdll'. Note that DRLink doesn't seem to
# work with the SDLS.
#
CC = cc -c -zM -d_DLL -JC:DLLLib.,:mem $(CCFlags)
ASM = ObjAsm $(ASMFlags)
CDLL = cdll
LINK = link
AS = as -dde -throwback
# filename of DLL Stubs aof file. This is linked with client apps.
#
DLL_Stubs = Stubs
# Filenames of intermediate files needed to make $(DLL_Lib) and $(DLL_Stubs).
#
# DLL_Def: Standard definition file as per SDLS docs.
# DLL_OtherStubsSource Assembler source to be partially linked into
# the final stubs file. This will force linking
# in of stubs from any other DLLs used by this
# library when a client application is built.
# DLL_PlainStubs The vanilla stubs file created by SDLS's cdll.
# DLL_OtherStubsObject Assembled from DLL_OtherStubsSource. This
# simply imports __DeskLib_SDLS_Stubs_<libname>'s
# for all DeskLib DLLs used by this library, and
# exports __DeskLib_SDLS_Stubs_<thislibname>.
#
DLL_Def = ^.DLLDef
DLL_OtherStubsSource = ^.OtherStubs
DLL_PlainStubs = PlainStubs
DLL_OtherStubsObject = OSObj
# -------------------------------------------------------
# Everything below here should probably not be changed...
# -------------------------------------------------------
# Now all the rules...
# Here's the two things we want to make...
#
All: $(DLL_Stubs) $(ObjectFiles)
$(DLL_Stubs): $(DLL_PlainStubs) $(DLL_OtherStubsObject)
$(LINK) -aof -o $@ $(DLL_PlainStubs) $(DLL_OtherStubsObject)
$(DLL_PlainStubs): $(DLL_Def)
$(CDLL) -def $(DLL_Def) -stub $(DLL_PlainStubs)
#$(DLL_OtherStubsObject): $(DLL_OtherStubsSource)
# $(AS) -o $(DLL_OtherStubsObject) $(DLL_OtherStubsSource)
$(DLL_OtherStubsObject): $(DLL_OtherStubsSource)
$(ASM) $(ASMFlags) -from $(DLL_OtherStubsSource) -to $(DLL_OtherStubsObject)
$(DLL_Def):
| Warning: No DLL definition file exists.
| Creating a default DLL definition file: $(DLL_Def)
| This will have to be altered by hand.
$(CDLL) -def $(DLL_Def) -obj $(ObjectFiles)
# Rule for compiling C source code for a Straylight dynamically-linked library.
VPATH = @.^
.SUFFIXES: .o .c .s
.c.o:
$(CC) -o $@ $<
.s.o:
$(ASM) $(ASMFlags) -from $< -to $@
# Dynamic dependencies:
o.Init: ^.c.Init
o.Init: C:h.string
o.Init: DeskLib:h.Resource
o.Init: DeskLib:h.Sprite
o.Init: DeskLib:h.Core
o.Init: C:h.stddef
o.Init: C:DLLLib.h.dll
o.Init: C:h.kernel
o.Init: DeskLib:h.Wimp
o.Init: DeskLib:h.Coord
o.Init: C:h.stdarg
o.Init: DeskLib:h.Str
o.Init: C:h.stddef
o.Init: C:DLLLib.h.dll
o.InitPath: ^.c.InitPath
o.InitPath: C:h.string
o.InitPath: DeskLib:h.Resource
o.InitPath: DeskLib:h.Sprite
o.InitPath: DeskLib:h.Core
o.InitPath: C:h.stddef
o.InitPath: C:DLLLib.h.dll
o.InitPath: C:h.kernel
o.InitPath: DeskLib:h.Wimp
o.InitPath: DeskLib:h.Coord
o.InitPath: C:h.stdarg
o.LoadSprite: ^.c.LoadSprite
o.LoadSprite: DeskLib:h.Error
o.LoadSprite: DeskLib:h.Core
o.LoadSprite: C:h.stddef
o.LoadSprite: C:DLLLib.h.dll
o.LoadSprite: C:h.kernel
o.LoadSprite: DeskLib:h.File
o.LoadSprite: DeskLib:h.SWI
o.LoadSprite: DeskLib:h.Resource
o.LoadSprite: DeskLib:h.Sprite
o.LoadSprite: DeskLib:h.Wimp
o.LoadSprite: DeskLib:h.Coord
o.LoadSprite: C:h.stdarg
o.LoadSprite: DeskLib:h.Sprite
o.LoadSprite: C:h.stdlib
o.LoadSprite: C:h.string
o.Pathname: ^.c.Pathname
o.Pathname: DeskLib:h.Resource
o.Pathname: DeskLib:h.Sprite
o.Pathname: DeskLib:h.Core
o.Pathname: C:h.stddef
o.Pathname: C:DLLLib.h.dll
o.Pathname: C:h.kernel
o.Pathname: DeskLib:h.Wimp
o.Pathname: DeskLib:h.Coord
o.Pathname: C:h.stdarg